package com.elitesland.demo.controller.backend.entity;

import com.elitesland.core.base.BaseModel;
import com.elitesland.system.annotation.Comment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Objects;

/**
 * 客户表
 */
@Entity
@Table(name = "cust")
@org.hibernate.annotations.Table(appliesTo = "cust", comment = "客户表")
@Data
@DynamicInsert
@DynamicUpdate
@Accessors(chain = true)
@ApiModel(value = "CUST", description = "客户表")
@EqualsAndHashCode(callSuper=true)
public class CustDO extends BaseModel implements Serializable
{


    @ApiModelProperty("客户编码")
    @Comment("客户编码")
    @Column(length = 255 )
    String custCode;

    @ApiModelProperty("客户名称")
    @Comment("客户名称")
    @Column(length = 255 )
    String custName;

    @ApiModelProperty("客户地址")
    @Comment("客户地址")
    @Column(length = 255 )
    String custAdd;


}